﻿.allbutton {
    text-decoration: none;
    background-color: #f3f3f3;
    border: 1px solid #bbb;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font-family: Microsoft YaHei UI,SimHei;
    cursor: pointer;
    outline: 0;
    color: #333;
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all ease-in-out .3s;
    transition: all .3s ease-in-out;
    position: relative;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}
.allbutton {
    margin: 15px 0px 15px 0;
    background: #ff4500;
    color: #fff;
    border: none;
    padding: 0 25px;
    line-height: 40px;
    width: 180px;
    height: 40px;
}
    .allbutton:after {
        content: "";
        width: 0;
        height: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-border-radius: 100%;
        border-radius: 100%;
        background: hsla(0,0%,100%,.4);
    }
    .allbutton:hover {
        background-color: #ff4500;
        color: white;
        transition: background-color 1s;
    }
        .allbutton:hover::after {
            width: 5px;
            height: 5px;
            -webkit-animation: buttonHoverAni 2.5s linear .1s;
            animation: buttonHoverAni 2.5s linear .1s;
        }

.animatebutton {
    text-decoration: none;
    font-family: Microsoft YaHei UI,SimHei;
    cursor: pointer;
    outline: 0;
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all ease-in-out .3s;
    transition: all .3s ease-in-out;
    position: relative;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}
    .animatebutton:after {
        content: "";
        width: 0;
        height: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-border-radius: 100%;
        border-radius: 100%;
        background: hsla(0,0%,100%,.4);
    }
    .animatebutton:hover {
        background-color: #ff4500;
        color: white;
        transition: background-color 1s;
    }
        .animatebutton:hover::after {
            width: 5px;
            height: 5px;
            -webkit-animation: buttonHoverAni 2.5s linear .1s;
            animation: buttonHoverAni 2.5s linear .1s;
        }

@-webkit-keyframes buttonHoverAni {
    0% {
        -webkit-transform: scale(1)
    }

    90% {
        -webkit-transform: scale(200)
    }

    100% {
        background: rgba(255,255,255,0)
    }
}

@keyframes buttonHoverAni {
    0% {
        -webkit-transform: scale(1)
    }

    90% {
        -webkit-transform: scale(200)
    }

    100% {
        background: rgba(255,255,255,0)
    }
}
